package com.forestar.mapControl.utils.mapConvert.geometry.utils;


import com.mapzone.api.geometry.mzHitInfo;
import com.mapzone.api.geometry.mzHitInfos;

/**
 * Created by YSJ on 2017/7/28.
 */

public class HitInfos
  {
    private mzHitInfos m_HitInfos;

    public HitInfos()
      {
        this.m_HitInfos = new mzHitInfos();
      }

    public HitInfos(mzHitInfos hitInfos)
      {
        this.m_HitInfos = hitInfos;
      }

    public int getHitInfoCount()
      {
        return m_HitInfos == null ? 0 : m_HitInfos.GetHitInfoCount();
      }

    public HitInfo getHitInfo(int nIndex)
      {
        mzHitInfo mzHitInfo = m_HitInfos.GetHitInfo(nIndex);
        HitInfo hitInfo = new HitInfo(mzHitInfo);
        return hitInfo;
      }

    public int getHitedCount()
      {
        return m_HitInfos == null ? 0 : m_HitInfos.GetHitedCount();
      }
  }
